//
//  HelpViewController.m
//  sleepTest2
//
//  Created by apple on 2017/8/5.
//  Copyright © 2017年 apple. All rights reserved.
//

#import "HelpViewController.h"

@interface HelpViewController ()

@end

@implementation HelpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    // 为页面添加标题和背景色
    self.title = @"帮助中心";
    self.view.backgroundColor = [UIColor colorWithRed:34/255.0 green:38/255.0 blue:65/255.0 alpha:1];
    
    // label1为标题，label2为内容
    UILabel *label1 = [[UILabel alloc] init];
    UILabel *label2 = [[UILabel alloc] init];
    label1.frame = CGRectMake(10, 70, [UIScreen mainScreen].bounds.size.width, 35);
    label2.frame = CGRectMake(10, 105, [UIScreen mainScreen].bounds.size.width - 15, 330);
    label1.text = @"Nox绑定失败的原因及解决办法";
    label2.text = @"1.WiFi的信号太小、手机网络不畅通请确保Nox、手机、路由器三者的距离不超过10米，三者间的距离越近越好。\n2.确保WiFi的帐号、密码正确，且路由器连接了外网很可能是你给Nox联网的WiFi账号、密码错误，导致Nox无法联网。\n3.路由器设置导致的绑定失败:\na.路由器设置了5GHz频段的无线WiFi，Nox暂不支持连接5G频段的WiFi。请打开路由器管理页面（一般在路由器底部标签上标有管理页面的地址），选择无线设置2.4GHz，设置为开启。\nb.路由器设置了防蹭网（黑白名单、MAC地址过滤等），会导致Nox不能联网。需要取消路由器的防蹭网设置。";
    label1.textColor = [UIColor colorWithRed:188/255.0 green:195/255.0 blue:232/255.0 alpha:1];
    label2.textColor = [UIColor colorWithRed:113/255.0 green:123/255.0 blue:172/255.0 alpha:1];
    label1.font = [UIFont boldSystemFontOfSize:20];
    label2.lineBreakMode = NSLineBreakByWordWrapping;
    label2.numberOfLines = 0;
    [self.view addSubview:label1];
    [self.view addSubview:label2];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
